<?php
    include_once("./template/DataProvider.php");
    $query = "SELECT * FROM giaodien";
    $result = DataProvider::ExecuteQuery($query);
    $row = mysql_fetch_array($result);
?>

<table cellpadding="0px" cellspacing="0px">
    <tr>
        <td style=" width: 400px;">
            <div >
                <a href="trangchu.php"><img width="400" height="87"
                <?php
                    if($row['logo'] == 1)
                        echo 'src="./images/header.jpg"';
                    else
                        echo 'src="./img_admin/'.$row['logo'].'"';
                ?> >
                </a>
            </div>
        </td>
        <td style="width: 590px;">
            <div id="div_login" style="float: right;">
            <?php
        	$_SESSION["url"] = $_SERVER['REQUEST_URI']; //nhớ trang đang mở
        	if(isset($_SESSION["MaTaiKhoan"]) == false)
        		include("dangnhap.php");
        	else
        		include("dangxuat.php");
            ?>
            </div>
        </td>
    </tr>
</table>


